package com.solace.selenium.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@TableName("authorization")
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Authorization {
    @TableId(value = "id", type = IdType.UUID)
    @Id
    private String id;
    //本机mac地址
    private String mac;
    //机器码生成时间
    private Long time;
    //授权周期
    private Integer type;
    //授权码生成时间
    private Long createKeyTime;
    //到期时间
    private Long stopKeyTime;
    //激活时间
    private Long activationTime;
    //随机码
    private String code;
    //状态
    private Boolean status;
}
